echo off
set COMMAND=%1
set PROFILE=%2
if "%1" == "" set COMMAND=REBUILD
if "%2" == "" set PROFILE=ALL
msdev openfixfast_vs6/openfixfast_vs6.dsw /MAKE "openfixfast_vs6 - %PROFILE%" /%COMMAND%
IF %ERRORLEVEL% NEQ 0 goto ERROR
msdev openfixfast_vs6/openfixfast_vs6.dsw /MAKE "at_vs6 - %PROFILE%" /%COMMAND%
IF %ERRORLEVEL% NEQ 0 goto ERROR
popd
goto quit
:ERROR
SET ERRORLEVEL=1
:quit
SET ERRORLEVEL=0
